using Unity.Entities;
using UnityEngine;

public class GridShowAuthoring : MonoBehaviour
{
    public int m_Col;
    public int m_Row;
    public Vector2 m_GridSize;
    public GameObject m_Line;
}

public class GridShowBaker : Baker<GridShowAuthoring>
{
    public override void Bake(GridShowAuthoring authoring)
    {
        var entity = GetEntity(TransformUsageFlags.Dynamic);
        AddComponent(entity, new GuidShowData
        {
            m_GridSize = authoring.m_GridSize,
            m_Col = authoring.m_Col,
            m_Row = authoring.m_Row,
            m_Entity = GetEntity(authoring.m_Line, TransformUsageFlags.None)
        });
    }

}
public partial struct GuidShowData : IComponentData
{
    public int m_Col;
    public int m_Row;
    public Vector2 m_GridSize;
    public Entity m_Entity;
}
